package com.itheima.reggie;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication//引导类
@Slf4j//日志
@MapperScan("com.itheima.reggie.dao")//扫描该路径下所有接口产生代理对象放入容器
@ServletComponentScan//把filter过滤器加载进容器中
@EnableTransactionManagement//开启事务
@EnableCaching//cache 缓存框架开启
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功...");
    }
}
